﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using TaxiCaosSOAPService.Dominio;
using TaxiCaosSOAPService.Exceptions;

namespace TaxiCaosSOAPService
{
    [ServiceContract]
    public interface IReservas
    {

        [OperationContract]
        [FaultContract(typeof(ReservaException))]
        Reserva RegistrarReserva(Nullable<int> idCliente, int idTarifa, string tipo, string nombres, string apellidos, string telefono, string email, DateTime fechaHora, string direccion, string comentarios, double montoBruto, double descuento, double montoNeto);

        [OperationContract]
        int ObtenerCantidadReservas(int idCliente);
    }
}
